package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.NewsCommentService;
import com.it.park.dao.NewsCommentMapper;
import com.it.park.model.NewsComment;

@Service("newsCommentService")
public class NewsCommentServiceImpl extends BaseServiceImpl<NewsComment> implements NewsCommentService{
	@Autowired
	private  NewsCommentMapper newsCommentMapper;
	
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return newsCommentMapper.deleteByPrimaryKey(id)==1;
	}

	@Override
	public boolean insert(NewsComment record) {
		return newsCommentMapper.insert(record)==1;
	}

	@Override
	public boolean insertSelective(NewsComment record) {
		return newsCommentMapper.insertSelective(record)==1;
	}

	@Override
	public NewsComment selectByPrimaryKey(Integer id) {
		return newsCommentMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean updateByPrimaryKeySelective(NewsComment record) {
		return newsCommentMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKeyWithBLOBs(NewsComment record) {
		return false;
	}

	@Override
	public boolean updateByPrimaryKey(NewsComment record) {
		return newsCommentMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<NewsComment> selectAll() {
		return newsCommentMapper.selectAll();
	}

	@Override
	public List<NewsComment> selectPagination(Map<String, Object> map) {
		return newsCommentMapper.selectPagination(map);
	}

	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return newsCommentMapper.selectTotal(map);
	}

	@Override
	public NewsComment selectIsExists(NewsComment record) {
		return newsCommentMapper.selectIsExists( record);
	}

	@Override
	public List<NewsComment> selectByNewsId(Map<String, Object> map) {
		return newsCommentMapper.selectByNewsId(map);
	}

	@Override
	public List<NewsComment> selectPagination(NewsComment t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer selectTotal(NewsComment t) {
		// TODO Auto-generated method stub
		return null;
	}


}
